const api: ApiConfig = {
  // 档案借阅-S
  fileList: {
    method: 'GET',
    url: '/oa/archive/archiveBorrowing/list'
  },
  fileSave: {
    method: 'POST',
    url: '/oa/archive/archiveBorrowing/save'
  },
  fileUpdate: {
    method: 'POST',
    url: '/oa/archive/archiveBorrowing/update'
  },
  fileItem: {
    method: 'GET',
    url: '/oa/archive/archiveBorrowing/info/:id'
  },
  idSelect: {
    method: 'GET',
    url: '/oa/archive/archive/selectArchive'
  },
  // 档案借阅-E

  // 维护-S
  maintenanceList: {
    method: 'GET',
    url: '/oa/archive/archive/list'
  },
  maintenanceDelete: {
    method: 'POST',
    url: '/oa/archive/archive/delete'
  },
  maintenanceSave: {
    method: 'POST',
    url: '/oa/archive/archive/save'
  },
  maintenanceUpdate: {
    method: 'POST',
    url: '/oa/archive/archive/update'
  },
  maintenanceItem: {
    method: 'GET',
    url: '/oa/archive/archive/info/:id'
  },
  maintenanceDownload: {
    method: 'GET',
    url: '/oa/archive/archive/download',
    responseType: 'blob'
  },
  maintenanceUpload: {
    method: 'POST',
    url: '/oa/archive/archive/uploadInstrument',
    headers: {
      'content-type': 'multipart/form-data'
    }
  },
  // 维护-E

  //导入错误信息
  maintenanceUploadError: {
    method: 'POST',
    url: '/oa/archive/archive/exportErrorDataBasedOnType',
    headers: {
      'content-type': 'multipart/form-data'
    },
    responseType: 'blob'
  },
}
export default api
